import request from '@/utils/request'

// 查询第二受害者知情同意书列表
export function listVitimConsent(query) {
  return request({
    url: '/secondVitim/vitimConsent/list',
    method: 'get',
    params: query
  })
}

// 查询第二受害者知情同意书详细
export function getVitimConsent(id) {
  return request({
    url: '/secondVitim/vitimConsent/' + id,
    method: 'get'
  })
}

// 新增第二受害者知情同意书
export function addVitimConsent(data) {
  return request({
    url: '/secondVitim/vitimConsent',
    method: 'post',
    data: data
  })
}

// 修改第二受害者知情同意书
export function updateVitimConsent(data) {
  return request({
    url: '/secondVitim/vitimConsent',
    method: 'put',
    data: data
  })
}

// 删除第二受害者知情同意书
export function delVitimConsent(id) {
  return request({
    url: '/secondVitim/vitimConsent/' + id,
    method: 'delete'
  })
}
